From 8be09cfcca9b71865819bf95ecfc2a1b662d44be Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Thu, 22 Mar 2018 20:08:17 +0530 Subject: [PATCH] Fix typo in cargo search subcommand. Since the search subcommand where typo happened is also used in test fix the typo in test also. Last-Update: 2017-10-29 Gbp-Pq: Name 1002_fix_typo_cargo_search.patch --- src/bin/search.rs | 2 +- tests/search.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/search.rs b/src/bin/search.rs index 23a656c06..feee24e00 100644 --- a/src/bin/search.rs +++ b/src/bin/search.rs @@ -70,7 +70,7 @@ pub fn execute(options: Options, config: &mut Config) -> CliResult { let msg = "The flag '--host' is no longer valid. Previous versions of Cargo accepted this flag, but it is being -depricated. The flag is being renamed to 'index', as the flag +deprecated. The flag is being renamed to 'index', as the flag wants the location of the index in which to search. Please use '--index' instead. diff --git a/tests/search.rs b/tests/search.rs index 9410ce7e7..b0cde5631 100644 --- a/tests/search.rs +++ b/tests/search.rs @@ -140,7 +140,7 @@ fn simple_with_host() { [WARNING] The flag '--host' is no longer valid. Previous versions of Cargo accepted this flag, but it is being -depricated. The flag is being renamed to 'index', as the flag +deprecated. The flag is being renamed to 'index', as the flag wants the location of the index in which to search. Please use '--index' instead. @@ -207,7 +207,7 @@ fn simple_with_index_and_host() { [WARNING] The flag '--host' is no longer valid. Previous versions of Cargo accepted this flag, but it is being -depricated. The flag is being renamed to 'index', as the flag +deprecated. The flag is being renamed to 'index', as the flag wants the location of the index in which to search. Please use '--index' instead. -- 2.30.2